package LinkedList.doubleLinkedList;

public class DoubleLinkedListTest {
    public static void main(String[] args) {
        DoubleLinkedList.HeroNode a1 = new DoubleLinkedList.HeroNode(1,"2");
        DoubleLinkedList.HeroNode a2 = new DoubleLinkedList.HeroNode(2,"2");
        DoubleLinkedList.HeroNode a3 = new DoubleLinkedList.HeroNode(3,"2");
        DoubleLinkedList list = new DoubleLinkedList();
        list.addByOrder(a1);
        list.addByOrder(a3);
        list.addByOrder(a2);
        list.display();
        System.out.println(list.getSize());
        System.out.println(list.getHead());
        System.out.println(list.getTail());
        System.out.println(list.getAt(3));
        list.remove(1);
        list.display();
        System.out.println(list.getHead());
        System.out.println(list.getTail());
    }
}
